<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();     
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看风险</title>
    <base href="<%=basePath%>"/>
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <style type="text/css">
    	table{margin:10px 10px};
  		td{line-height: 40px;}
  		label {font-weight:bold;}
    </style>
  </head>
  <body>
    <fieldset>
      <legend>查看风险：</legend>  
        <table>
       <tr>
            <td><label for="version">项目名称：</label></td>
            <td>
            	<input type="text" name="project" id="project"   disabled="disabled" value="${projectName}" />
            	<font color="red">&nbsp;*&nbsp;&nbsp;</font>
            </td>
          </tr>
          <tr>
            <td><label for="name">风险类型：</label></td>
			<td>
				 <select name="riskType" id="riskType"  disabled="disabled">
						<c:forEach var="type" items="${riskTypes}" varStatus="status">
									<option value="${type.value}"
										<c:if test="${type.value == risk.riskType}">selected</c:if>>${type.name}</option>
					    </c:forEach>
				 </select>
                 <font color="red">&nbsp;*&nbsp;&nbsp;</font> 
            </td>
          </tr>
          <tr>
            <td><label for="status">状态：</label></td>
            <td>
            	<select name="status" id="status"  disabled="disabled">
					<c:forEach var="st" items="${riskStatus}" varStatus="status">
						<option value="${st.value}"
						<c:if test="${st.value == risk.status}">selected</c:if>>${st.name}</option>
					</c:forEach>
				</select>
            </td>
          </tr>     
          <tr>
            <td><label for="description">风险内容：</label></td>
            <td>
            	<textarea name="description" id="description"  disabled="disabled" cols="40" rows="8"><c:out value="${risk.description}"/></textarea>
            	<font color="red">&nbsp;*&nbsp;&nbsp;</font>
            	<label for="name">长度2～15位</label>
            </td>
          </tr>            
          <tr>
            <td></td>
            <td>
            	<input type="button" id="btn_back" value="返回" onclick="history.back();" style="width:80px;" />
            </td>
          </tr>
        </table>  
    </fieldset>  
  </body>
</html>